<template>
	<view class="container">
		<view class="list">
			<view class="list-item" @click="onDetails">
				<image class="item-img" src="../../static/logo.png" mode=""></image>
				<view class="right">
					<view class="title">门店新产品获得消费者的高度认可</view>
					<view class="date">2024-05-23</view>
				</view>
			</view>
			<view class="list-item">
				<image class="item-img" src="../../static/logo.png" mode=""></image>
				<view class="right">
					<view class="title">门店新产品获得消费者的高度认可</view>
					<view class="date">2024-05-23</view>
				</view>
			</view>
			<view class="list-item">
				<image class="item-img" src="../../static/logo.png" mode=""></image>
				<view class="right">
					<view class="title">门店新产品获得消费者的高度认可</view>
					<view class="date">2024-05-23</view>
				</view>
			</view>
		</view>
		<view class="button-fb" @click="issue">发布新活动</view>
	</view>
</template>

<script>
	const app = getApp();
	export default {
		data() {
			return {

			};
		},
		methods: {
			issue(){
				app.navigationTo('page_account/activity/issue')
			}
		}
	}
</script>

<style lang="scss" scoped>
	.container {
		overflow: hidden;
		min-height: 100vh;
		width: 100vw;
		padding: 22rpx;
		padding-bottom: calc(96rpx + 32rpx + 22rpx);
		box-sizing: border-box;
		background: #F7F8FA;

		.button-fb {
			position: fixed;
			bottom: 32rpx;
			left: 50%;
			transform: translateX(-50%);
			width: 480rpx;
			height: 96rpx;
			background: linear-gradient(180deg, #886AE6 0%, #4635FF 99%);
			border-radius: 48rpx;
			font-weight: 400;
			font-size: 32rpx;
			color: #FFFFFF;
			line-height: 96rpx;
			text-align: center;
		}

		.list {
			// padding: 32rpx 24rpx;
			// box-sizing: border-box;

			.list-item {
				padding: 32rpx 24rpx;
				box-sizing: border-box;
				border-radius: 20rpx;
				background: #FFFFFF;
				display: flex;
				align-items: center;
				margin-bottom: 24rpx;

				.item-img {
					width: 128rpx;
					height: 128rpx;
					border-radius: 12rpx;
					margin-right: 24rpx;
				}

				.right {
					.title {
						font-weight: 800;
						font-size: 28rpx;
						color: #000000;
						line-height: 44rpx;
					}

					.deta {
						font-weight: 400;
						font-size: 28rpx;
						color: #000000;
						line-height: 44rpx;
					}
				}
			}
		}
	}
</style>